package com.springboot.admin.mapper;

import com.springboot.admin.entity.AccountDto;
import com.springboot.admin.entity.SiteInfoDto;

import java.util.List;
import java.util.Map;

public interface AccountDao {

  public AccountDto getUserByname(String username);

  public boolean updateUserInfo(AccountDto accountDto);

  public List<Map> getRolesByUserName(String username);

  public List<Map> getUserList(int page);

  public List<Map> getRoleList();

  public void insertRole(String username,String roleId);

  public void deleteRolesByUsername(String username);

  public void insertUser(String username,String password,String email);

  public void deleUser(int id);

  public void deleUserRoles(String username);

  public Map getSiteInfo();

  public void updateSiteInfo(SiteInfoDto siteInfoDto);

  public void insertLoginLog(String username);
}